import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import modules from './__modules__';

const routes: Array<RouteRecordRaw> = [
  ...(modules as RouteRecordRaw[]),
  {
    path: '/**',
    redirect: ''
  }
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
});

export default router;
